const axios = require("axios")

const sm = axios.create({
  baseURL: "https://sm.ms/api/v2/",
  timeout: 10000
})

sm.interceptors.request.use(config => {
  return config
})

sm.interceptors.response.use(res => {
  return res.data
})

module.exports = sm
